import { Request } from "@/utils/request";
export class BaseApi extends Request {
  constructor(baseUrl?:string){
    super(baseUrl);
  }
  // 集团数据
  baseCompany(params: {
    organizationType: string | number
  }){
    return this.get('/ys-amp-web/select/list/baseCompany',{
      params
    })
  }
  
  // 初始化字典
  dictInit(){
    return this.post('/ys-amp-web/platform/init/dictInit')
  }

  // 登录接口
  login(data:{
    loginName: string
    password: string
  }){
    return this.post('/ys-sso-server/app/login', data)
  }

  
}
export const BaseApiApi = new BaseApi()
